﻿using DeviceBaseInfoConfigModule.Views;
using LPLS.PluginCommon;
using LPLS.PluginCommon.ModulePlugin;
using Prism.Ioc;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace DeviceBaseInfoConfigModule.ViewModels
{
    [ViewModelMetadata(projectID: "12322222", viewModelName: "设备基础信息配置", version: "1.0.1", lifecycle: Lifecycle.Singleton, index: 0, isCommon: true)]
    public class DeviceBaseInfoConfigViewModel : ViewModelBase
    {
        public DeviceBaseInfoConfigViewModel(IContainerProvider containerProvider) : base(containerProvider)
        {
            InitializeTabs();
        }
        private ObservableCollection<TabItem> _tabItems;
        public ObservableCollection<TabItem> TabItems
        {
            get { return _tabItems; }
            set { SetProperty(ref _tabItems, value); }
        }

        private void InitializeTabs()
        {
            TabItems = new ObservableCollection<TabItem>
        {
            CreateTabItem("设备基础配置", typeof(DeviceBaseInfoView)),
            CreateTabItem("设备部件配置", typeof(DeviceComponentInfoView)),
            //CreateTabItem("报警代码规则配置", typeof(AlarmVarableCodeRuleConfigView)),

        };
        }
    }
}
